package cn.com.jinhao.provider.user.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * HotLine
 * <p>Description: 角色实体类</p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2019/10/23
 * @since 2019-10-23
 */

@ToString
@Data
@Table(name = "ST$ROLE")
@ApiModel(value = "Role", description = "角色信息")
public class Role extends Base implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "role")
    @ApiModelProperty(name = "name", value = "角色名称")
    @NotNull(message = "角色名称不能为空")
    private String name;

    @Column(name = "paid")
    @ApiModelProperty(name = "parentCode", value = "上级角色")
    private String parentCode;

    @Column(name = "spel")
    @ApiModelProperty(name = "spel", value = "汉语拼音")
    private String spel;

//  @Column(name = "rch0")
//  @ApiModelProperty(value = "保留字符串", hidden = true)
//  private String rch0;
//
//  @Column(name = "rch1")
//  @ApiModelProperty(value = "保留字符串", hidden = true)
//  private String rch1;
//
//  @Column(name = "rch2")
//  @ApiModelProperty(value = "保留字符串", hidden = true)
//  private String rch2;
//
//  @Column(name = "rch3")
//  @ApiModelProperty(value = "保留字符串", hidden = true)
//  private String rch3;
//
//  @Column(name = "rnb0")
//  @ApiModelProperty(value = "保留数字", hidden = true)
//  private Short rnb0;
//
//  @Column(name = "rnb1")
//  @ApiModelProperty(value = "保留数字", hidden = true)
//  private Short rnb1;
//
//  @Column(name = "rdt0")
//  @ApiModelProperty(value = "保留日期", hidden = true)
//  private Date rdt0;
//
//  @Column(name = "rdt1")
//  @ApiModelProperty(value = "保留日期", hidden = true)
//  private Date rdt1;
//
//  @Column(name = "rtp0")
//  @ApiModelProperty(value = "保留时间戳", hidden = true)
//  private Date rtp0;
//
//  @Column(name = "rtp1")
//  @ApiModelProperty(value = "保留时间戳", hidden = true)
//  private Date rtp1;

    @Transient
    @ApiModelProperty(value = "用户资源列表", hidden = true)
    private List<Func> funcs;
}
